package com.gpframework.common.enums;

import lombok.Getter;

/**
 * 合同 - 枚举
 *
 * @author BrinedFish
 * @create 2022-05-07 17:52
 */
@Getter
public enum ContractEnum {

    /**
     * contract_info#state
     */
    NOT_SIGNED("未签署", "0"),
    SIGNED_SIGNED("已签署", "1"),
    SIGNED_FINISH("已归档", "2"),
    EXPIRED("已失效", "-2"),

    /**
     * contract_template#template_type
     */
    OPEN_CARD_CONTRACT_TEMPLATE("办卡合同模板", "1"),
    CONTINUE_CARD_CONTRACT_TEMPLATE("续卡合同模板", "2"),
    TRANSFER_CARD_CONTRACT_TEMPLATE("转卡合同模板", "4"),
    PRIVATE_EDUCATION_CONTRACT_TEMPLATE("买课合同模板", "5"),
    RENEWAL_PRIVATE_EDUCATION_CONTRACT_TEMPLATE("续课合同模板", "55"),
    GROUP_CLASS_CONTRACT_TEMPLATE("团课合同模板", "6"),
    STORED_VALUE_CONTRACT_TEMPLATE("储值合同模板", "7"),
    RENT_CABINET_CONTRACT_TEMPLATE("租柜合同模板", "8"),
    REFUND_CONTRACT_TEMPLATE("退款合同模板", "9"),
    TRANSFER_COURSE_TEMPLATE("转课合同模板", "15"),
    UPGRADE_CARD_CONTRACT_TEMPLATE("升级卡合同模板", "20"),
    DEPOSIT_CONTRACT_TEMPLATE("定金合同模板", "25"),
    RENEW_CABINET_CONTRACT_TEMPLATE("续租柜合同模板", "30"),
    TRANSFER_CABINET_CONTRACT_TEMPLATE("转租柜合同模板", "35"),
    GIVE_AWAY_COURSE_CONTRACT_TEMPLATE("赠送课程合同模版", "65"),
    UPGRADE_COURSE_TEMPLATE("升级课合同模版", "75"),


    // 合同编号是否固定
    FIXED_FLAG_NO("不固定", "0"),
    FIXED_FLAG_YES("固定", "1"),

    // 合同编号格式
    FORMAT_TYPE_NUMBER("数字（0-9）", "1"),
    FORMAT_TYPE_LETTER("字母（A-Z）", "2"),

    /**
     * 延期类型
     */
    CARD_DELAY("卡延期", "10"),
    COURSE_DELAY("课延期", "20"),
    CABINET_DELAY("租柜延期", "30"),

    /**
     * 合同来源
     */
    SYSTEM_BUY("系统购买", "13001"),
    SYSTEM_IMPORT("系统导入", "13002");

    /**
     * 业务名称
     */
    private String name;

    private String key;

    private ContractEnum() {
    }

    private ContractEnum(String name) {
        this.name = name;
    }

    private ContractEnum(String name, String key) {
        this.name = name;
        this.key = key;
    }


}
